package com.vnaloha.common.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.vnaloha.common.model.Customer;
import com.vnaloha.util.CustomHibernateDaoSupport;

@Repository
public class CustomerDAOImpl extends CustomHibernateDaoSupport implements
		CustomerDAO {

	@Override
	public Customer get(int id) {
		Customer customer = (Customer) getHibernateTemplate().get(Customer.class, id);

		if (null != customer) {
			return customer;
		}
		logger.error("Error when get customer by id " + id);
		return null;
	}

	@Override
	public boolean save(Customer customer) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<Customer> list() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Customer> list(int start, int max) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean delete(int id) {
		// TODO Auto-generated method stub
		return false;
	}

	
}
